<?php

namespace App\Http\Controllers\API\Manager;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class SchoolInfoController extends Controller
{
	public $colleges = ['石河子大学商学院', '石河子大学科技学院'];

	public $fullData = [
		'石河子大学商学院' => [
			'电子商务', '物流管理', '统计', '金融', '人力资源', '审计',
		],
		'石河子大学科技学院' => [
			'公共事业管理', '工商管理', '法学', '国际贸易',
		],
	];

    public function getCollege()
    {
    	return response()->json($this->colleges);
    }

    public function getProfessional(Request $request)
    {
    	if ($request->has('college')) {
    		$college = $request->get('college');
    		return response()->json($this->fullData[$college]);
    	}
    }
}
